package com.abing.starry.controller;

import com.abing.starry.manager.SearchPlatformManager;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author CaptainBing
 * @Date 2024/8/16 20:38
 * @Description
 */
@RestController
@RequestMapping("/search")
@RequiredArgsConstructor
public class SearchPlatformController {

    private final SearchPlatformManager searchPlatformManager;

    @GetMapping("/_query")
    public List<String> queryPicture(@RequestParam String searchName){
        return searchPlatformManager.queryPicture(searchName);
    }


}
